package com.ryan.mdp.api.annotation;

import java.util.Date;

import com.ryan.mdp.annotation.MdpMethod;
import com.ryan.mdp.annotation.MessageProperties;
import com.ryan.mdp.annotation.MessageProperty;
import com.ryan.mdp.dto.DemoDto;

public interface AnnoDemoService {
    @MdpMethod(timeout = 5000, cache = true, cacheTtl = 60000)
    public Date sync(@MessageProperty(name = "param") String now);

    public void syncDynamicAnno(@MessageProperties({ @MessageProperty(name = "dynamic", jxpath = "prop1"),
            @MessageProperty(name = "value", jxpath = "value") }) DemoDto dto);
}
